#pragma once
#include <windows.h>

class KBufferDC
{
public:
	KBufferDC();
	~KBufferDC();

public:
	bool Create(HWND hDesWnd, COLORREF colorBK);
	void BeginDraw();
	void EndDraw();
	HDC	GetMemDC();
	int GetWidth();
	int GetHeight();

private:
	HDC		m_hMemDC;
	HDC		m_hDesDC;
	HBITMAP m_hBitmap;
	HBITMAP m_hOldBitmap;
	int		m_nWidth;
	int		m_nHeight;
	HBRUSH	m_hBKBrush;
};